# -*- coding: utf-8 -*-
from django.contrib import admin 
from models import *
        
admin.site.register(Section)
admin.site.register(Category)
admin.site.register(Product)

class ImagesModel(admin.ModelAdmin):
    list_display = (
                    'title',
                    'image',
                    # Die Model-Methode preview_image_url()
                    'preview_image_url',
                    'description',
                    'pub_date',
                    )
    
admin.site.register(Images, ImagesModel)